{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>文章管理</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	{include file="Store_Menu/top"}
	{include file="new/top"}
	<div class="ibox-content">
		<a href="{:url('index',['typeid'=>'0'])}" class="btn btn-primary btn-outline">全部</a>
	   	{foreach name='newtype_list' item='vo'}		  
	   	<a href="{:url('index',['typeid'=>$vo.id])}" class="btn btn-primary btn-outline">{$vo.nametype}</a>
	   	{/foreach}    
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
						<a href="{:url('add')}" class="btn btn-primary btn-outline">添加</a>
					</div>
				</div>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th></th>
                                <th>标题</th>
                                <th>点击率</th>
                                <th>创建时间</th>
                                <th>排序</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.id}</td>
                        		<td>{$ad.title}</td>
                        		<td>{$ad.clicks}</td>
                        		<td>{$ad.addtime}</td>
                        		<td>{$ad.sort}</td>
                        		<td>	
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
									{if condition="$vo.id neq 1"}
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
									{/if}									
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
		//顶部导航
	$("#li-bar-index1").addClass("active");
	
	$("#li-bar-detail2").addClass("active");
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}